import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
  {
    path: '/discovery',
    name: 'Discovery',
    component: () => import('../components/Discovery.vue')
  },
  {
    path: '/playlists',
    name: 'PlayLists',
    component: () => import('../components/PlayLists.vue')
  },
  {
    path: '/newsongs',
    name: 'NewSongs',
    component: () => import('../components/NewSongs.vue')
  },
  {
    path: '/newmvs',
    name: 'NewMVs',
    component: () => import('../components/NewMVs.vue')
  },
  {
    path: '/mysonglists',
    name: 'MySongLists',
    component: () => import('../components/MySongLists.vue')
  },
  {
    path: '/searchlist',
    name: 'SearchList',
    component: () => import('../components/SearchList.vue')
  }
]

const router = new VueRouter({
  routes
})

export default router
